/*
 * MIT License
 *
 * Copyright (c) 2023 OrdinaryRoad
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: douyin.proto

// Protobuf Java Version: 3.25.3
package tech.ordinaryroad.live.chat.client.codec.douyin.protobuf;

/**
 * Protobuf type {@code PublicAreaCommon}
 */
public final class PublicAreaCommon extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:PublicAreaCommon)
    PublicAreaCommonOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PublicAreaCommon.newBuilder() to construct.
  private PublicAreaCommon(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private PublicAreaCommon() {
  }

  @Override
  @SuppressWarnings({"unused"})
  protected Object newInstance(
      UnusedPrivateParameter unused) {
    return new PublicAreaCommon();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return Douyin.internal_static_PublicAreaCommon_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return Douyin.internal_static_PublicAreaCommon_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            PublicAreaCommon.class, Builder.class);
  }

  private int bitField0_;
  public static final int USERLABEL_FIELD_NUMBER = 1;
  private Image userLabel_;
  /**
   * <code>.Image userLabel = 1;</code>
   * @return Whether the userLabel field is set.
   */
  @Override
  public boolean hasUserLabel() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * <code>.Image userLabel = 1;</code>
   * @return The userLabel.
   */
  @Override
  public Image getUserLabel() {
    return userLabel_ == null ? Image.getDefaultInstance() : userLabel_;
  }
  /**
   * <code>.Image userLabel = 1;</code>
   */
  @Override
  public ImageOrBuilder getUserLabelOrBuilder() {
    return userLabel_ == null ? Image.getDefaultInstance() : userLabel_;
  }

  public static final int USERCONSUMEINROOM_FIELD_NUMBER = 2;
  private long userConsumeInRoom_ = 0L;
  /**
   * <code>uint64 userConsumeInRoom = 2;</code>
   * @return The userConsumeInRoom.
   */
  @Override
  public long getUserConsumeInRoom() {
    return userConsumeInRoom_;
  }

  public static final int USERSENDGIFTCNTINROOM_FIELD_NUMBER = 3;
  private long userSendGiftCntInRoom_ = 0L;
  /**
   * <code>uint64 userSendGiftCntInRoom = 3;</code>
   * @return The userSendGiftCntInRoom.
   */
  @Override
  public long getUserSendGiftCntInRoom() {
    return userSendGiftCntInRoom_;
  }

  public static final int INDIVIDUAL_PRIORITY_FIELD_NUMBER = 4;
  private long individualPriority_ = 0L;
  /**
   * <code>uint64 individual_priority = 4;</code>
   * @return The individualPriority.
   */
  @Override
  public long getIndividualPriority() {
    return individualPriority_;
  }

  public static final int SUPPORT_PIN_FIELD_NUMBER = 6;
  private long supportPin_ = 0L;
  /**
   * <code>uint64 support_pin = 6;</code>
   * @return The supportPin.
   */
  @Override
  public long getSupportPin() {
    return supportPin_;
  }

  public static final int SUFFIX_TEXT_FIELD_NUMBER = 7;
  private SuffixText suffixText_;
  /**
   * <code>.SuffixText suffix_text = 7;</code>
   * @return Whether the suffixText field is set.
   */
  @Override
  public boolean hasSuffixText() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * <code>.SuffixText suffix_text = 7;</code>
   * @return The suffixText.
   */
  @Override
  public SuffixText getSuffixText() {
    return suffixText_ == null ? SuffixText.getDefaultInstance() : suffixText_;
  }
  /**
   * <code>.SuffixText suffix_text = 7;</code>
   */
  @Override
  public SuffixTextOrBuilder getSuffixTextOrBuilder() {
    return suffixText_ == null ? SuffixText.getDefaultInstance() : suffixText_;
  }

  public static final int IM_ACTION_FIELD_NUMBER = 8;
  private int imAction_ = 0;
  /**
   * <code>int32 im_action = 8;</code>
   * @return The imAction.
   */
  @Override
  public int getImAction() {
    return imAction_;
  }

  public static final int FORBIDDEN_PROFILE_FIELD_NUMBER = 9;
  private boolean forbiddenProfile_ = false;
  /**
   * <code>bool forbidden_profile = 9;</code>
   * @return The forbiddenProfile.
   */
  @Override
  public boolean getForbiddenProfile() {
    return forbiddenProfile_;
  }

  public static final int REPLY_RESP_FIELD_NUMBER = 10;
  private ChatReplyRespInfo replyResp_;
  /**
   * <code>.ChatReplyRespInfo reply_resp = 10;</code>
   * @return Whether the replyResp field is set.
   */
  @Override
  public boolean hasReplyResp() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * <code>.ChatReplyRespInfo reply_resp = 10;</code>
   * @return The replyResp.
   */
  @Override
  public ChatReplyRespInfo getReplyResp() {
    return replyResp_ == null ? ChatReplyRespInfo.getDefaultInstance() : replyResp_;
  }
  /**
   * <code>.ChatReplyRespInfo reply_resp = 10;</code>
   */
  @Override
  public ChatReplyRespInfoOrBuilder getReplyRespOrBuilder() {
    return replyResp_ == null ? ChatReplyRespInfo.getDefaultInstance() : replyResp_;
  }

  public static final int IS_FEATURED_FIELD_NUMBER = 12;
  private long isFeatured_ = 0L;
  /**
   * <code>uint64 is_featured = 12;</code>
   * @return The isFeatured.
   */
  @Override
  public long getIsFeatured() {
    return isFeatured_;
  }

  public static final int NEED_FILTER_DISPLAY_FIELD_NUMBER = 13;
  private boolean needFilterDisplay_ = false;
  /**
   * <code>bool need_filter_display = 13;</code>
   * @return The needFilterDisplay.
   */
  @Override
  public boolean getNeedFilterDisplay() {
    return needFilterDisplay_;
  }

  private byte memoizedIsInitialized = -1;
  @Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getUserLabel());
    }
    if (userConsumeInRoom_ != 0L) {
      output.writeUInt64(2, userConsumeInRoom_);
    }
    if (userSendGiftCntInRoom_ != 0L) {
      output.writeUInt64(3, userSendGiftCntInRoom_);
    }
    if (individualPriority_ != 0L) {
      output.writeUInt64(4, individualPriority_);
    }
    if (supportPin_ != 0L) {
      output.writeUInt64(6, supportPin_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(7, getSuffixText());
    }
    if (imAction_ != 0) {
      output.writeInt32(8, imAction_);
    }
    if (forbiddenProfile_ != false) {
      output.writeBool(9, forbiddenProfile_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(10, getReplyResp());
    }
    if (isFeatured_ != 0L) {
      output.writeUInt64(12, isFeatured_);
    }
    if (needFilterDisplay_ != false) {
      output.writeBool(13, needFilterDisplay_);
    }
    getUnknownFields().writeTo(output);
  }

  @Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getUserLabel());
    }
    if (userConsumeInRoom_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, userConsumeInRoom_);
    }
    if (userSendGiftCntInRoom_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, userSendGiftCntInRoom_);
    }
    if (individualPriority_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(4, individualPriority_);
    }
    if (supportPin_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(6, supportPin_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, getSuffixText());
    }
    if (imAction_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, imAction_);
    }
    if (forbiddenProfile_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(9, forbiddenProfile_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(10, getReplyResp());
    }
    if (isFeatured_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(12, isFeatured_);
    }
    if (needFilterDisplay_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(13, needFilterDisplay_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof PublicAreaCommon)) {
      return super.equals(obj);
    }
    PublicAreaCommon other = (PublicAreaCommon) obj;

    if (hasUserLabel() != other.hasUserLabel()) return false;
    if (hasUserLabel()) {
      if (!getUserLabel()
          .equals(other.getUserLabel())) return false;
    }
    if (getUserConsumeInRoom()
        != other.getUserConsumeInRoom()) return false;
    if (getUserSendGiftCntInRoom()
        != other.getUserSendGiftCntInRoom()) return false;
    if (getIndividualPriority()
        != other.getIndividualPriority()) return false;
    if (getSupportPin()
        != other.getSupportPin()) return false;
    if (hasSuffixText() != other.hasSuffixText()) return false;
    if (hasSuffixText()) {
      if (!getSuffixText()
          .equals(other.getSuffixText())) return false;
    }
    if (getImAction()
        != other.getImAction()) return false;
    if (getForbiddenProfile()
        != other.getForbiddenProfile()) return false;
    if (hasReplyResp() != other.hasReplyResp()) return false;
    if (hasReplyResp()) {
      if (!getReplyResp()
          .equals(other.getReplyResp())) return false;
    }
    if (getIsFeatured()
        != other.getIsFeatured()) return false;
    if (getNeedFilterDisplay()
        != other.getNeedFilterDisplay()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasUserLabel()) {
      hash = (37 * hash) + USERLABEL_FIELD_NUMBER;
      hash = (53 * hash) + getUserLabel().hashCode();
    }
    hash = (37 * hash) + USERCONSUMEINROOM_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getUserConsumeInRoom());
    hash = (37 * hash) + USERSENDGIFTCNTINROOM_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getUserSendGiftCntInRoom());
    hash = (37 * hash) + INDIVIDUAL_PRIORITY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getIndividualPriority());
    hash = (37 * hash) + SUPPORT_PIN_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getSupportPin());
    if (hasSuffixText()) {
      hash = (37 * hash) + SUFFIX_TEXT_FIELD_NUMBER;
      hash = (53 * hash) + getSuffixText().hashCode();
    }
    hash = (37 * hash) + IM_ACTION_FIELD_NUMBER;
    hash = (53 * hash) + getImAction();
    hash = (37 * hash) + FORBIDDEN_PROFILE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getForbiddenProfile());
    if (hasReplyResp()) {
      hash = (37 * hash) + REPLY_RESP_FIELD_NUMBER;
      hash = (53 * hash) + getReplyResp().hashCode();
    }
    hash = (37 * hash) + IS_FEATURED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getIsFeatured());
    hash = (37 * hash) + NEED_FILTER_DISPLAY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getNeedFilterDisplay());
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static PublicAreaCommon parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static PublicAreaCommon parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static PublicAreaCommon parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static PublicAreaCommon parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static PublicAreaCommon parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static PublicAreaCommon parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static PublicAreaCommon parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static PublicAreaCommon parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static PublicAreaCommon parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static PublicAreaCommon parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static PublicAreaCommon parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static PublicAreaCommon parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(PublicAreaCommon prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code PublicAreaCommon}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:PublicAreaCommon)
      PublicAreaCommonOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return Douyin.internal_static_PublicAreaCommon_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return Douyin.internal_static_PublicAreaCommon_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              PublicAreaCommon.class, Builder.class);
    }

    // Construct using tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.PublicAreaCommon.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getUserLabelFieldBuilder();
        getSuffixTextFieldBuilder();
        getReplyRespFieldBuilder();
      }
    }
    @Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      userLabel_ = null;
      if (userLabelBuilder_ != null) {
        userLabelBuilder_.dispose();
        userLabelBuilder_ = null;
      }
      userConsumeInRoom_ = 0L;
      userSendGiftCntInRoom_ = 0L;
      individualPriority_ = 0L;
      supportPin_ = 0L;
      suffixText_ = null;
      if (suffixTextBuilder_ != null) {
        suffixTextBuilder_.dispose();
        suffixTextBuilder_ = null;
      }
      imAction_ = 0;
      forbiddenProfile_ = false;
      replyResp_ = null;
      if (replyRespBuilder_ != null) {
        replyRespBuilder_.dispose();
        replyRespBuilder_ = null;
      }
      isFeatured_ = 0L;
      needFilterDisplay_ = false;
      return this;
    }

    @Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return Douyin.internal_static_PublicAreaCommon_descriptor;
    }

    @Override
    public PublicAreaCommon getDefaultInstanceForType() {
      return PublicAreaCommon.getDefaultInstance();
    }

    @Override
    public PublicAreaCommon build() {
      PublicAreaCommon result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @Override
    public PublicAreaCommon buildPartial() {
      PublicAreaCommon result = new PublicAreaCommon(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(PublicAreaCommon result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.userLabel_ = userLabelBuilder_ == null
            ? userLabel_
            : userLabelBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.userConsumeInRoom_ = userConsumeInRoom_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.userSendGiftCntInRoom_ = userSendGiftCntInRoom_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.individualPriority_ = individualPriority_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.supportPin_ = supportPin_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.suffixText_ = suffixTextBuilder_ == null
            ? suffixText_
            : suffixTextBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.imAction_ = imAction_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.forbiddenProfile_ = forbiddenProfile_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.replyResp_ = replyRespBuilder_ == null
            ? replyResp_
            : replyRespBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.isFeatured_ = isFeatured_;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.needFilterDisplay_ = needFilterDisplay_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @Override
    public Builder clone() {
      return super.clone();
    }
    @Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return super.setField(field, value);
    }
    @Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return super.addRepeatedField(field, value);
    }
    @Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof PublicAreaCommon) {
        return mergeFrom((PublicAreaCommon)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(PublicAreaCommon other) {
      if (other == PublicAreaCommon.getDefaultInstance()) return this;
      if (other.hasUserLabel()) {
        mergeUserLabel(other.getUserLabel());
      }
      if (other.getUserConsumeInRoom() != 0L) {
        setUserConsumeInRoom(other.getUserConsumeInRoom());
      }
      if (other.getUserSendGiftCntInRoom() != 0L) {
        setUserSendGiftCntInRoom(other.getUserSendGiftCntInRoom());
      }
      if (other.getIndividualPriority() != 0L) {
        setIndividualPriority(other.getIndividualPriority());
      }
      if (other.getSupportPin() != 0L) {
        setSupportPin(other.getSupportPin());
      }
      if (other.hasSuffixText()) {
        mergeSuffixText(other.getSuffixText());
      }
      if (other.getImAction() != 0) {
        setImAction(other.getImAction());
      }
      if (other.getForbiddenProfile() != false) {
        setForbiddenProfile(other.getForbiddenProfile());
      }
      if (other.hasReplyResp()) {
        mergeReplyResp(other.getReplyResp());
      }
      if (other.getIsFeatured() != 0L) {
        setIsFeatured(other.getIsFeatured());
      }
      if (other.getNeedFilterDisplay() != false) {
        setNeedFilterDisplay(other.getNeedFilterDisplay());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @Override
    public final boolean isInitialized() {
      return true;
    }

    @Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getUserLabelFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              userConsumeInRoom_ = input.readUInt64();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 24: {
              userSendGiftCntInRoom_ = input.readUInt64();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 32: {
              individualPriority_ = input.readUInt64();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 48: {
              supportPin_ = input.readUInt64();
              bitField0_ |= 0x00000010;
              break;
            } // case 48
            case 58: {
              input.readMessage(
                  getSuffixTextFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000020;
              break;
            } // case 58
            case 64: {
              imAction_ = input.readInt32();
              bitField0_ |= 0x00000040;
              break;
            } // case 64
            case 72: {
              forbiddenProfile_ = input.readBool();
              bitField0_ |= 0x00000080;
              break;
            } // case 72
            case 82: {
              input.readMessage(
                  getReplyRespFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000100;
              break;
            } // case 82
            case 96: {
              isFeatured_ = input.readUInt64();
              bitField0_ |= 0x00000200;
              break;
            } // case 96
            case 104: {
              needFilterDisplay_ = input.readBool();
              bitField0_ |= 0x00000400;
              break;
            } // case 104
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private Image userLabel_;
    private com.google.protobuf.SingleFieldBuilderV3<
        Image, Image.Builder, ImageOrBuilder> userLabelBuilder_;
    /**
     * <code>.Image userLabel = 1;</code>
     * @return Whether the userLabel field is set.
     */
    public boolean hasUserLabel() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.Image userLabel = 1;</code>
     * @return The userLabel.
     */
    public Image getUserLabel() {
      if (userLabelBuilder_ == null) {
        return userLabel_ == null ? Image.getDefaultInstance() : userLabel_;
      } else {
        return userLabelBuilder_.getMessage();
      }
    }
    /**
     * <code>.Image userLabel = 1;</code>
     */
    public Builder setUserLabel(Image value) {
      if (userLabelBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        userLabel_ = value;
      } else {
        userLabelBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Image userLabel = 1;</code>
     */
    public Builder setUserLabel(
        Image.Builder builderForValue) {
      if (userLabelBuilder_ == null) {
        userLabel_ = builderForValue.build();
      } else {
        userLabelBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Image userLabel = 1;</code>
     */
    public Builder mergeUserLabel(Image value) {
      if (userLabelBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          userLabel_ != null &&
          userLabel_ != Image.getDefaultInstance()) {
          getUserLabelBuilder().mergeFrom(value);
        } else {
          userLabel_ = value;
        }
      } else {
        userLabelBuilder_.mergeFrom(value);
      }
      if (userLabel_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.Image userLabel = 1;</code>
     */
    public Builder clearUserLabel() {
      bitField0_ = (bitField0_ & ~0x00000001);
      userLabel_ = null;
      if (userLabelBuilder_ != null) {
        userLabelBuilder_.dispose();
        userLabelBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Image userLabel = 1;</code>
     */
    public Image.Builder getUserLabelBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getUserLabelFieldBuilder().getBuilder();
    }
    /**
     * <code>.Image userLabel = 1;</code>
     */
    public ImageOrBuilder getUserLabelOrBuilder() {
      if (userLabelBuilder_ != null) {
        return userLabelBuilder_.getMessageOrBuilder();
      } else {
        return userLabel_ == null ?
            Image.getDefaultInstance() : userLabel_;
      }
    }
    /**
     * <code>.Image userLabel = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        Image, Image.Builder, ImageOrBuilder>
        getUserLabelFieldBuilder() {
      if (userLabelBuilder_ == null) {
        userLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            Image, Image.Builder, ImageOrBuilder>(
                getUserLabel(),
                getParentForChildren(),
                isClean());
        userLabel_ = null;
      }
      return userLabelBuilder_;
    }

    private long userConsumeInRoom_ ;
    /**
     * <code>uint64 userConsumeInRoom = 2;</code>
     * @return The userConsumeInRoom.
     */
    @Override
    public long getUserConsumeInRoom() {
      return userConsumeInRoom_;
    }
    /**
     * <code>uint64 userConsumeInRoom = 2;</code>
     * @param value The userConsumeInRoom to set.
     * @return This builder for chaining.
     */
    public Builder setUserConsumeInRoom(long value) {

      userConsumeInRoom_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 userConsumeInRoom = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserConsumeInRoom() {
      bitField0_ = (bitField0_ & ~0x00000002);
      userConsumeInRoom_ = 0L;
      onChanged();
      return this;
    }

    private long userSendGiftCntInRoom_ ;
    /**
     * <code>uint64 userSendGiftCntInRoom = 3;</code>
     * @return The userSendGiftCntInRoom.
     */
    @Override
    public long getUserSendGiftCntInRoom() {
      return userSendGiftCntInRoom_;
    }
    /**
     * <code>uint64 userSendGiftCntInRoom = 3;</code>
     * @param value The userSendGiftCntInRoom to set.
     * @return This builder for chaining.
     */
    public Builder setUserSendGiftCntInRoom(long value) {

      userSendGiftCntInRoom_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 userSendGiftCntInRoom = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserSendGiftCntInRoom() {
      bitField0_ = (bitField0_ & ~0x00000004);
      userSendGiftCntInRoom_ = 0L;
      onChanged();
      return this;
    }

    private long individualPriority_ ;
    /**
     * <code>uint64 individual_priority = 4;</code>
     * @return The individualPriority.
     */
    @Override
    public long getIndividualPriority() {
      return individualPriority_;
    }
    /**
     * <code>uint64 individual_priority = 4;</code>
     * @param value The individualPriority to set.
     * @return This builder for chaining.
     */
    public Builder setIndividualPriority(long value) {

      individualPriority_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 individual_priority = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearIndividualPriority() {
      bitField0_ = (bitField0_ & ~0x00000008);
      individualPriority_ = 0L;
      onChanged();
      return this;
    }

    private long supportPin_ ;
    /**
     * <code>uint64 support_pin = 6;</code>
     * @return The supportPin.
     */
    @Override
    public long getSupportPin() {
      return supportPin_;
    }
    /**
     * <code>uint64 support_pin = 6;</code>
     * @param value The supportPin to set.
     * @return This builder for chaining.
     */
    public Builder setSupportPin(long value) {

      supportPin_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 support_pin = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearSupportPin() {
      bitField0_ = (bitField0_ & ~0x00000010);
      supportPin_ = 0L;
      onChanged();
      return this;
    }

    private SuffixText suffixText_;
    private com.google.protobuf.SingleFieldBuilderV3<
        SuffixText, SuffixText.Builder, SuffixTextOrBuilder> suffixTextBuilder_;
    /**
     * <code>.SuffixText suffix_text = 7;</code>
     * @return Whether the suffixText field is set.
     */
    public boolean hasSuffixText() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * <code>.SuffixText suffix_text = 7;</code>
     * @return The suffixText.
     */
    public SuffixText getSuffixText() {
      if (suffixTextBuilder_ == null) {
        return suffixText_ == null ? SuffixText.getDefaultInstance() : suffixText_;
      } else {
        return suffixTextBuilder_.getMessage();
      }
    }
    /**
     * <code>.SuffixText suffix_text = 7;</code>
     */
    public Builder setSuffixText(SuffixText value) {
      if (suffixTextBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        suffixText_ = value;
      } else {
        suffixTextBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>.SuffixText suffix_text = 7;</code>
     */
    public Builder setSuffixText(
        SuffixText.Builder builderForValue) {
      if (suffixTextBuilder_ == null) {
        suffixText_ = builderForValue.build();
      } else {
        suffixTextBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>.SuffixText suffix_text = 7;</code>
     */
    public Builder mergeSuffixText(SuffixText value) {
      if (suffixTextBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0) &&
          suffixText_ != null &&
          suffixText_ != SuffixText.getDefaultInstance()) {
          getSuffixTextBuilder().mergeFrom(value);
        } else {
          suffixText_ = value;
        }
      } else {
        suffixTextBuilder_.mergeFrom(value);
      }
      if (suffixText_ != null) {
        bitField0_ |= 0x00000020;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.SuffixText suffix_text = 7;</code>
     */
    public Builder clearSuffixText() {
      bitField0_ = (bitField0_ & ~0x00000020);
      suffixText_ = null;
      if (suffixTextBuilder_ != null) {
        suffixTextBuilder_.dispose();
        suffixTextBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.SuffixText suffix_text = 7;</code>
     */
    public SuffixText.Builder getSuffixTextBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return getSuffixTextFieldBuilder().getBuilder();
    }
    /**
     * <code>.SuffixText suffix_text = 7;</code>
     */
    public SuffixTextOrBuilder getSuffixTextOrBuilder() {
      if (suffixTextBuilder_ != null) {
        return suffixTextBuilder_.getMessageOrBuilder();
      } else {
        return suffixText_ == null ?
            SuffixText.getDefaultInstance() : suffixText_;
      }
    }
    /**
     * <code>.SuffixText suffix_text = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        SuffixText, SuffixText.Builder, SuffixTextOrBuilder>
        getSuffixTextFieldBuilder() {
      if (suffixTextBuilder_ == null) {
        suffixTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            SuffixText, SuffixText.Builder, SuffixTextOrBuilder>(
                getSuffixText(),
                getParentForChildren(),
                isClean());
        suffixText_ = null;
      }
      return suffixTextBuilder_;
    }

    private int imAction_ ;
    /**
     * <code>int32 im_action = 8;</code>
     * @return The imAction.
     */
    @Override
    public int getImAction() {
      return imAction_;
    }
    /**
     * <code>int32 im_action = 8;</code>
     * @param value The imAction to set.
     * @return This builder for chaining.
     */
    public Builder setImAction(int value) {

      imAction_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>int32 im_action = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearImAction() {
      bitField0_ = (bitField0_ & ~0x00000040);
      imAction_ = 0;
      onChanged();
      return this;
    }

    private boolean forbiddenProfile_ ;
    /**
     * <code>bool forbidden_profile = 9;</code>
     * @return The forbiddenProfile.
     */
    @Override
    public boolean getForbiddenProfile() {
      return forbiddenProfile_;
    }
    /**
     * <code>bool forbidden_profile = 9;</code>
     * @param value The forbiddenProfile to set.
     * @return This builder for chaining.
     */
    public Builder setForbiddenProfile(boolean value) {

      forbiddenProfile_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     * <code>bool forbidden_profile = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearForbiddenProfile() {
      bitField0_ = (bitField0_ & ~0x00000080);
      forbiddenProfile_ = false;
      onChanged();
      return this;
    }

    private ChatReplyRespInfo replyResp_;
    private com.google.protobuf.SingleFieldBuilderV3<
        ChatReplyRespInfo, ChatReplyRespInfo.Builder, ChatReplyRespInfoOrBuilder> replyRespBuilder_;
    /**
     * <code>.ChatReplyRespInfo reply_resp = 10;</code>
     * @return Whether the replyResp field is set.
     */
    public boolean hasReplyResp() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     * <code>.ChatReplyRespInfo reply_resp = 10;</code>
     * @return The replyResp.
     */
    public ChatReplyRespInfo getReplyResp() {
      if (replyRespBuilder_ == null) {
        return replyResp_ == null ? ChatReplyRespInfo.getDefaultInstance() : replyResp_;
      } else {
        return replyRespBuilder_.getMessage();
      }
    }
    /**
     * <code>.ChatReplyRespInfo reply_resp = 10;</code>
     */
    public Builder setReplyResp(ChatReplyRespInfo value) {
      if (replyRespBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        replyResp_ = value;
      } else {
        replyRespBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     * <code>.ChatReplyRespInfo reply_resp = 10;</code>
     */
    public Builder setReplyResp(
        ChatReplyRespInfo.Builder builderForValue) {
      if (replyRespBuilder_ == null) {
        replyResp_ = builderForValue.build();
      } else {
        replyRespBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     * <code>.ChatReplyRespInfo reply_resp = 10;</code>
     */
    public Builder mergeReplyResp(ChatReplyRespInfo value) {
      if (replyRespBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0) &&
          replyResp_ != null &&
          replyResp_ != ChatReplyRespInfo.getDefaultInstance()) {
          getReplyRespBuilder().mergeFrom(value);
        } else {
          replyResp_ = value;
        }
      } else {
        replyRespBuilder_.mergeFrom(value);
      }
      if (replyResp_ != null) {
        bitField0_ |= 0x00000100;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.ChatReplyRespInfo reply_resp = 10;</code>
     */
    public Builder clearReplyResp() {
      bitField0_ = (bitField0_ & ~0x00000100);
      replyResp_ = null;
      if (replyRespBuilder_ != null) {
        replyRespBuilder_.dispose();
        replyRespBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.ChatReplyRespInfo reply_resp = 10;</code>
     */
    public ChatReplyRespInfo.Builder getReplyRespBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getReplyRespFieldBuilder().getBuilder();
    }
    /**
     * <code>.ChatReplyRespInfo reply_resp = 10;</code>
     */
    public ChatReplyRespInfoOrBuilder getReplyRespOrBuilder() {
      if (replyRespBuilder_ != null) {
        return replyRespBuilder_.getMessageOrBuilder();
      } else {
        return replyResp_ == null ?
            ChatReplyRespInfo.getDefaultInstance() : replyResp_;
      }
    }
    /**
     * <code>.ChatReplyRespInfo reply_resp = 10;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ChatReplyRespInfo, ChatReplyRespInfo.Builder, ChatReplyRespInfoOrBuilder>
        getReplyRespFieldBuilder() {
      if (replyRespBuilder_ == null) {
        replyRespBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ChatReplyRespInfo, ChatReplyRespInfo.Builder, ChatReplyRespInfoOrBuilder>(
                getReplyResp(),
                getParentForChildren(),
                isClean());
        replyResp_ = null;
      }
      return replyRespBuilder_;
    }

    private long isFeatured_ ;
    /**
     * <code>uint64 is_featured = 12;</code>
     * @return The isFeatured.
     */
    @Override
    public long getIsFeatured() {
      return isFeatured_;
    }
    /**
     * <code>uint64 is_featured = 12;</code>
     * @param value The isFeatured to set.
     * @return This builder for chaining.
     */
    public Builder setIsFeatured(long value) {

      isFeatured_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 is_featured = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsFeatured() {
      bitField0_ = (bitField0_ & ~0x00000200);
      isFeatured_ = 0L;
      onChanged();
      return this;
    }

    private boolean needFilterDisplay_ ;
    /**
     * <code>bool need_filter_display = 13;</code>
     * @return The needFilterDisplay.
     */
    @Override
    public boolean getNeedFilterDisplay() {
      return needFilterDisplay_;
    }
    /**
     * <code>bool need_filter_display = 13;</code>
     * @param value The needFilterDisplay to set.
     * @return This builder for chaining.
     */
    public Builder setNeedFilterDisplay(boolean value) {

      needFilterDisplay_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     * <code>bool need_filter_display = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearNeedFilterDisplay() {
      bitField0_ = (bitField0_ & ~0x00000400);
      needFilterDisplay_ = false;
      onChanged();
      return this;
    }
    @Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:PublicAreaCommon)
  }

  // @@protoc_insertion_point(class_scope:PublicAreaCommon)
  private static final PublicAreaCommon DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new PublicAreaCommon();
  }

  public static PublicAreaCommon getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<PublicAreaCommon>
      PARSER = new com.google.protobuf.AbstractParser<PublicAreaCommon>() {
    @Override
    public PublicAreaCommon parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser<PublicAreaCommon> parser() {
    return PARSER;
  }

  @Override
  public com.google.protobuf.Parser<PublicAreaCommon> getParserForType() {
    return PARSER;
  }

  @Override
  public PublicAreaCommon getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

